package com.rp.data.data_mqtt;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * 类说明:
 *
 * @author ****
 * @date 2021-03-20 10:27  新建
 */
@Api(tags = "接收数据推送")
@RestController
@Slf4j
@RequestMapping("/ruff/reception")
public class ReceptionController1 {

    @PostMapping("/ruff_data")
    @ApiOperation(value = "接收ruff数据")
    public String meter_reading(@RequestParam  String msg,
                                @RequestParam String name,
                                @RequestParam String code) {
        String s = "msg:"+msg+";"+"name:"+name+";"+"code:"+code;
        // FE 01 00 00 00 04 29 C6
        // FE 01 01 00 61 9C
        System.out.println(s);
        return s;
    }

}